/*************************************************************************
 Copyright (C) Unpublished Unis Software, Inc. All rights reserved.
 Unis Software, Inc., Confidential and Proprietary.

 This software is subject to copyright protection
 under the laws of the Public of China and other countries.

 Unless otherwise explicitly stated, this software is provided
 by Unis "AS IS".
 *************************************************************************/
package com.unis.service.mailfolder;

import java.util.List;

import com.unis.model.BaseModel;
import com.unis.model.mailfolder.Mail;

/**
 * @author Administrator (email:xxh@163.com)
 * @since 2013-02-21
 */
public interface MailService {

    /****************************************
     * Insert a instace of Mail
     ****************************************/
    void insert(Mail mail) throws Exception;

    /****************************************
     * Insert instaces of Mail
     ****************************************/
    void batchInsert(Mail mail) throws Exception;

    /****************************************
     * Delete a instace of Mail
     ****************************************/
    void delete(Mail mail) throws Exception;

    /****************************************
     * Delete instaces of Mail
     ****************************************/
    void batchDelete(Mail mail) throws Exception;

    /****************************************
     * Update a instace of Mail
     ****************************************/
    void update(Mail mail) throws Exception;

    /****************************************
     * Update instaces of Mail
     ****************************************/
    void batchUpdate(Mail mail) throws Exception;

    /****************************************
     * Query instaces of Mail
     ****************************************/
    List<BaseModel> queryAsList(Mail mail) throws Exception;

    /****************************************
     * Query a instaces of Mail
     ****************************************/
    BaseModel queryAsObject(Mail mail) throws Exception;
}
